<template>
	<view class="content">
		<view class="body">
			<view v-html="user?user:'<p>暂无信息</p>'"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1,
				user:'',
				
			};
		},
		onLoad(opt){
			this.type=opt.type
			if(this.type==2){
				uni.setNavigationBarTitle({
					title:"隐私协议"
				})
				this.getrules2()
			}
			if(this.type==1){
				this.getrules()
			}
		},
		methods:{
			getrules(){
				this.$user().then(res=>{
					this.user=res.data
				})
			},
			getrules2(){
				this.$privacy().then(res=>{
					this.user=res.data
				})
			}
		}
	}
</script>

<style lang="scss">
.body{
	padding: 20rpx 30rpx;
	
}
</style>
